import React from 'react'
import { connect } from 'dva'

function index(props) {
    const { students, match: { params } } = props
    const data = students.find(s => s.sNo == params.id)
    console.log('学生数据', data);
    return (
        <div>
            <h1>修改学生:{params.id}</h1>
        </div>
    )
}

export default connect(state => ({ students: state.students.result.datas }))(index)